package com.beici.waterghost.controller;


import com.beici.waterghost.model.resultes;
import com.beici.waterghost.service.impl.selectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class selectController {
    @Autowired
    private selectService selectservice;
    // 查询映射，type = 查询类型 1=用户 2=专辑 context = 查询内容
    @GetMapping("/querty/{type}/{context}")
    public resultes querty(@PathVariable("type") Integer type,@PathVariable("context") String context){
        return selectservice.querty(type,context);
    }


}
